package com.oc.mba.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OcMessageDict entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oc_message_dict", catalog = "openmba")
public class MessageDictEntity implements java.io.Serializable {

	// Fields

	private Integer id;
	private String dictName;

	// Constructors

	/** default constructor */
	public MessageDictEntity() {
	}

	/** full constructor */
	public MessageDictEntity(String dictName) {
		this.dictName = dictName;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "dict_name", nullable = false)
	public String getDictName() {
		return this.dictName;
	}

	public void setDictName(String dictName) {
		this.dictName = dictName;
	}

}